home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / lib / partman / visual.d / method < prev    next >
Text File  |  2008-10-14  |  256b  |  26 lines

  1. #!/bin/sh
  2.  
  3. cd $1
  4.  
  5. num=$2
  6. id=$3
  7. size=$4
  8. type=$5
  9. fs=$6
  10. path=$7
  11. name=$8
  12.  
  13. if [ ! -f $id/method ]; then
  14.     printf "  "
  15. else
  16.     if [ -f $id/format ]; then
  17.         if [ -f $id/detected_filesystem ]; then
  18.             printf " F"
  19.         else
  20.             printf " f"
  21.         fi
  22.     else
  23.         printf " K"
  24.     fi
  25. fi
  26.